interface FetchUserInfoAPIResData {
  code: number
  msg: string
  time: string
  data: UserInfo
}

/**
 * @description 获取最新的 userInfo
 */
export function fetchUserInfoAPI(token: string) {
  return httpInstance.get<FetchUserInfoAPIResData>(
    '/api/index/getUserInfo',
    { headers: { token } },
  )
}
